package cn.yanjr.system.dao;

import java.sql.SQLException;
import java.util.List;

import cn.yanjr.common.dao.BaseDao;
import cn.yanjr.system.entity.SysArea;
	
public interface SysAreaDao extends BaseDao<String, SysArea> {
	
	public List<SysArea> findAll(SysArea area) throws SQLException;
	
	public SysArea findOne(String id) throws SQLException;
	
	public int save(SysArea area) throws SQLException;
	
	public int update(SysArea area) throws SQLException;
	
	public int delete(String id) throws SQLException;
	
	public int count(String where) throws SQLException;
	
	public List<SysArea> findBySql(String sql) throws SQLException;
	
	public List<SysArea> findByWhere(String where) throws SQLException;
	
	public List<SysArea> findPage(String where, int page, int limit, String orderBy) throws SQLException;
	
}
